package com.g4.shoppingsingle.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class RegisterVo implements Serializable {
    @NotBlank(message = "用户名不能为空")
    @Pattern(regexp = "^.{3,8}$", message = "用户名需要在3~8个字符之间")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^\\w{6,20}$", message = "密码是6~20位字符")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    private String repassword;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号格式不正确")
    private String telephone;

    private String sign = "一支穿云箭，千军万马来相见！";

    private String hobby = "游戏，音乐，旅游，健身";

    private String address = "浙江省杭州市江干区19号大街571号";


}
